package com.delivery.vo;

import com.delivery.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@ApiModel(description = "菜品详细信息VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DishVO implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜品ID", required = true, example = "23532563263723")
    private Long id;

    @ApiModelProperty(value = "菜品名称", required = true, example = "鱼香肉丝")
    private String name;

    @ApiModelProperty(value = "分类ID", required = true, example = "5423452")
    private Long categoryId;

    @ApiModelProperty(value = "菜品价格", required = true, example = "38")
    private BigDecimal price;

    @ApiModelProperty(value = "图片地址", required = true, example = "image/yuuxiangrousi.jpg")
    private String image;

    @ApiModelProperty(value = "描述信息", required = true, example = "经典川菜口味")
    private String description;

    @ApiModelProperty(value = "状态 0停用 1启用", required = true, example = "1")
    private Integer status;

    @ApiModelProperty(value = "最后修改时间", required = true, example = "2023-08-15 12:00:00")
    private String updateTime;

    @ApiModelProperty(value = "分类名称", required = true, example = "川菜")
    private String categoryName;

    @ApiModelProperty(value = "菜品口味", required = true)
    private List<DishFlavor> flavors;
}